package com.zkadmin.helper;

import org.zkoss.xel.VariableResolver;
import org.zkoss.xel.XelException;

public class ZkAdminResolver implements VariableResolver {

	@Override
	public Object resolveVariable(String name) throws XelException {
		if ("pageTitle".equals(name)) {
			return ZkAdminInit.getSetting().getName();
		}
		//这里一定要返回null
		return null;
	}

}
